<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Pragma" content="no-cache">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Person-Family-Edit</title>

  <!-- calendar stylesheet -->
  <link rel="stylesheet" type="text/css" media="all" href="/lib/jscalendar/calendar-win2k-cold-1.css" title="win2k-cold-1" />

  <!-- main calendar program -->
  <script type="text/javascript" src="/lib/jscalendar/calendar.js"></script>

  <!-- language for the calendar -->
  <script type="text/javascript" src="/lib/jscalendar/lang/calendar-en.js"></script>

  <!-- the following script defines the Calendar.setup helper function, which makes
       adding a calendar a matter of 1 or 2 lines of code. -->
  <script type="text/javascript" src="/lib/jscalendar/calendar-setup.js"></script>

<script type="text/javascript">
var formInUse = false;
function setFocus()
{
	if(!formInUse) {
		document.PersonData.NFirst.focus();
	}
}
</script>

<script type="text/javascript">
function verifyPersonData() {
	var genders = PersonData.Gender;
	var last = genders.length;
	for (var i = 0; i < last; i++) {
		if (genders[i].checked) {
			return(true);
		}
	}
	alert('Please select a gender.');
	genders[0].focus();
	return(false);
}
</script>

</head>

<body onload="setFocus()">

<form method="POST" action="person_modify.php" name="PersonData" onsubmit="return verifyPersonData();">

<table border="0" cellpadding="4" cellspacing="1" width="100%" bgcolor="#CCFFCC">
  <tr>
    <td width="100%">
      <p align="center"><b><font size="6">{FullName}</font></b>
      <table border="0" cellpadding="4" cellspacing="1" width="100%">
        <tr>
          <td width="20%"><b>First</b></td>
          <td width="20%"><b>Middle</b></td>
          <td width="20%"><b>Last</b></td>
          <td width="20%"><b>Suffix</b></td>
          <td width="20%"><b>Nickname</b></td>
        </tr>
        <tr>
          <td width="20%"><input type="text" name="NFirst" size="12" value="{NFirst}"></td>
          <td width="20%"><input type="text" name="NMiddle" size="12" value="{NMiddle}"></td>
          <td width="20%"><input type="text" name="NLast" size="12" value="{NLast}"></td>
          <td width="20%"><input type="text" name="NSuffix" size="12" value="{NSuffix}"></td>
          <td width="20%"><input type="text" name="NNick" size="12" value="{NNick}"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table border="0" cellpadding="4" cellspacing="1" width="100%">
  <tr>
    <td width="20%" bgcolor="#FFFFCC" align="right"><b><font size="2">Date of
      Birth:</font></b></td>
    <td width="27%">
       <input type="text" name="DOB" size="20" value="{DOB}"><img
src="/lib/jscalendar/img.gif" id="dob_cal_pic" style="cursor: pointer; border: 1px solid
red;" title="Date selector" onmouseover="this.style.background='red';"
onmouseout="this.style.background=''" />
<script type="text/javascript">
    Calendar.setup({
        inputField     :    "DOB",          // id of the input field
        ifFormat       :    "%m/%d/%Y",     // format of the input field (even if hidden, this format will be honored)
        displayArea    :    "show_e",       // ID of the span where the date is to be shown
        daFormat       :    "%m/%d/%Y",     // format of the displayed date
        button         :    "dob_cal_pic",  // trigger button (well, IMG in our case)
        align          :    "Tl",           // alignment (defaults to "Bl")
        singleClick    :    true
    });
</script>

    </td>
    <td width="7%"></td>
    <td width="21%" bgcolor="#FFFFCC" align="right"><b><font size="2">Date of
      Death:</font></b></td>
    <td width="25%"><input type="text" name="DOD" size="20" value="{DOD}"><img
src="/lib/jscalendar/img.gif" id="dod_cal_pic" style="cursor: pointer; border: 1px solid
red;" title="Date selector" onmouseover="this.style.background='red';"
onmouseout="this.style.background=''" />
<script type="text/javascript">
    Calendar.setup({
        inputField     :    "DOD",          // id of the input field
        ifFormat       :    "%m/%d/%Y",     // format of the input field (even if hidden, this format will be honored)
        displayArea    :    "",             // ID of the span where the date is to be shown
        daFormat       :    "%m/%d/%Y",     // format of the displayed date
        button         :    "dod_cal_pic",  // trigger button (well, IMG in our case)
        align          :    "Tl",           // alignment (defaults to "Bl")
        singleClick    :    true
    });
</script>
    </td>
  </tr>
  <tr>
    <td width="20%" bgcolor="#FFFFCC" align="right"><b><font size="2">Place of
      Birth:</font></b></td>
    <td width="27%"><input type="text" name="POB" size="20" value="{POB}"></td>
    <td width="7%"></td>
    <td width="21%" bgcolor="#FFFFCC" align="right"><b><font size="2">Place of
      Death:</font></b></td>
    <td width="25%"><input type="text" name="POD" size="20" value="{POD}"></td>
  </tr>
  <tr>
    <td width="20%" bgcolor="#FFFFCC" align="right"><b><font size="2">Birth
      Details:</font></b></td>
    <td width="27%"><textarea rows="4" name="Birth" cols="20">{Birth}</textarea></td>
    <td width="7%"></td>
    <td width="21%" bgcolor="#FFFFCC" align="right"><b><font size="2">Death
      Details:</font></b></td>
    <td width="25%"><textarea rows="4" name="Death" cols="20">{Death}</textarea></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFCC" align="right"><b><font size="2">Gender:</font></b></td>
    <td><font size="2"><input type="radio" name="Gender" value="M"{GenderChkM}> Male <input type="radio" name="Gender" value="F"{GenderChkF}> Female </font></td>
    <td></td>
  </tr>
</table>
<p align="center"><input type="submit" value="Update" name="Submit"><input type="reset" value="Reset Fields" name="Reset"><input type="submit" value="Cancel" name="Cancel"></p>
<input type="hidden" name="PersonID" value="{PersonID}">
<input type="hidden" name="whichForm" value="Personal">
<input type="hidden" name="mode" value="{Mode}">
<input type="hidden" name="relation" value="{Relation}">
<input type="hidden" name="AddFID" value="{AddFID}">
<input type="hidden" name="AddMID" value="{AddMID}">
</form>


<p>&nbsp;</p>
{stNoChgPar}<form method="POST" action="person_modify.php" name="ChangeParents">{endNoChgPar}
<table border="0" cellpadding="4" cellspacing="1" width="100%" id="table1">
  <tr>
    <td width="12%" bgcolor="#CCCCFF" align="right"><b><font size="2">Father:</font></b></td>
    <td width="35%"><font size="2"><a href="person.php?id={FatherID}">{Father}</a>
    {stNoChgPar}&nbsp;<input type="text" name="ChgFID" size="6" value="{FatherID}">{endNoChgPar}</font></td>
	
    <td width="7%"></td>
    <td width="12%" bgcolor="#CCCCFF" align="right"><b><font size="2">Mother:</font></b></td>
    <td width="34%"><font size="2"><a href="person.php?id={MotherID}">{Mother}</a>
	{stNoChgPar}&nbsp;<input type="text" name="ChgMID" size="6" value="{MotherID}">{endNoChgPar}</font></td>
  </tr>
  <tr>
    <td width="12%" bgcolor="#CCCCFF" align="right"><b><font size="2">Lived:</font></b></td>
    <td width="35%"><font size="2">{FatherDates}</font></td>
    <td width="7%"></td>
    <td width="12%" bgcolor="#CCCCFF" align="right"><b><font size="2">Lived:</font></b></td>
    <td width="34%"><font size="2">{MotherDates}</font></td>
  </tr>
</table>
	{stNoChgPar}
	<p align="center"><input type="submit" value="Update" name="SubmitParents"><input type="reset" value="Reset Fields" name="Reset"><input type="submit" value="Cancel" name="Cancel"></p>
	<input type="hidden" name="PersonID" value="{PersonID}">
	<input type="hidden" name="whichForm" value="Parents">
</form>
{endNoChgPar}
<p>&nbsp;</p>
<p>&nbsp;</p>
{StSkipSpouses}
<!-- BEGIN Spouses -->
<form method="POST" action="person_modify.php" name="SpouseData">
<table border="0" cellpadding="4" cellspacing="4" width="100%">
  <tr>
    <td width="16%" bgcolor="#FFCCCC" align="right" valign="top">
      <p align="right"><b><font size="2">Spouse:<br>
      DETAILS<br>
      Date:<br>
      Place:<br>
      Notes:</font></b></td>
    <td width="31%" valign="top"><font size="2"><a href="person.php?id={SpouseID}">{Spouse}</a>
    {stNoChgSp}&nbsp;<input type="text" name="ChgSp" size="6" value="{SpouseID}">{endNoChgSp}<br>
      <br>
      <input type="text" name="DOM" size="20" value="{DOM}"><br>
      <input type="text" name="POM" size="20" value="{POM}"><br>
      <textarea rows="4" name="Marriage" cols="20">{MNotes}</textarea></font></td>
    <td width="6%"></td>
    <td width="16%" bgcolor="#FFCCCC" align="right" valign="top"><b><font size="2">Children:</font></b></td>
    <td width="31%" valign="top"><font size="2"><ol><!-- BEGIN Child --><li><a href="person.php?id={ChildID}">{Child}</a> ({ChildDOB})</li><!-- END Child --></ol></font></td>
  </tr>
</table>
<p align="center"><input type="submit" value="Update" name="Submit"><input type="reset" value="Reset Fields" name="Reset"><input type="submit" value="Cancel" name="Cancel"></p>
<input type="hidden" name="PersonID" value="{PersonID}">
<input type="hidden" name="PersonSex" value="{PersonSex}">
<input type="hidden" name="SpouseID" value="{SpouseID}">
<input type="hidden" name="SpMode" value="{SpMode}">
<input type="hidden" name="MarriageID" value="{MarriageID}">
<input type="hidden" name="whichForm" value="Spouse">
</form>
<!-- END Spouses -->
{EndSkipSpouses}
<br>
<!-- BEGIN OtherChildren -->
<table border="0" cellpadding="4" cellspacing="1" width="100%">
  <tr>
    <td width="16%" bgcolor="#FFCCCC" align="right" valign="top">
      <p align="right"><b><font size="2">Spouse:</font></b></td>
    <td width="31%" valign="top"><font size="2">UNKNOWN</font></td>
    <td width="6%"></td>
    <td width="16%" bgcolor="#FFCCCC" align="right" valign="top"><b><font size="2">Other<br>Children:</font></b></td>
    <td width="31%" valign="top"><font size="2"><!-- BEGIN OthChild --><a href="person.php?id={OthChildID}">{OthChild}</a>
      ({OthChildDOB})<br><!-- END OthChild --></font></td>
  </tr>
</table>
<br>
<!-- END OtherChildren -->

</body>

</html>
